home *** CD-ROM | disk | FTP | other *** search
- /*
-
- This file:
-
- Declares global objects DDE_GLOBAL, this object is
- created once and only once to set up some essential
- information in a ADS DDE application, such as connection
- to ACAD and the global DDE instance ID.
-
- (C) Copyright 1988-1994 by Autodesk, Inc.
-
- This program is copyrighted by Autodesk, Inc. and is licensed
- to you under the following conditions. You may not distribute
- or publish the source code of this program in any form. You
- may incorporate this code in object form in derivative works
- provided such derivative works are (i.) are designed and
- intended to work solely with Autodesk, Inc. products, and
- (ii.) contain Autodesk's copyright notice "(C) Copyright
- 1988-1994 by Autodesk, Inc."
-
- AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
- AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF MER-
- CHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
- DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
- UNINTERRUPTED OR ERROR FREE.
- */
-
- #ifndef DDE_GLOB_H
- #define DDE_GLOB_H
-
- //-----------------------------------------------------------------------------
- //
- struct DDE_GLOBAL : ADS_OBJ
- {
- static SS_SERVER_INFO *excel_server_info;
- static SERVER_INFO *acad_info;
- static DDE_CLIENT_CONNECTION *acad_connection;
-
- static DWORD InstId;
- static DWORD GetInstId()
- {
- ASSERT( InstId != 0 );
- return InstId;
- }
-
- DDE_GLOBAL();
- ~DDE_GLOBAL();
-
- BOOL Valid() { return TRUE; }
- };
-
- extern DDE_GLOBAL dde_global;
-
- #endif
-
-